﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Quanly_Congty.aspx.cs" Inherits="Admin_Congty_Quanly_Congty" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" BackColor="White" Font-Bold="True" 
        Font-Size="X-Large" ForeColor="#FF3300" Text="Quản Lý Công Ty"></asp:Label>
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="Id_cty" DataSourceID="LinqDataSource1" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Vertical" >
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundField DataField="Id_cty" HeaderText="Mã" InsertVisible="False" 
                ReadOnly="True" SortExpression="Id_cty" />
            <asp:BoundField DataField="Ten_cty" HeaderText="Tên" 
                SortExpression="Ten_cty" />
            <asp:BoundField DataField="Diachi_cty" HeaderText="Đia chỉ" 
                SortExpression="Diachi_cty" />
            <asp:BoundField DataField="Email_cty" HeaderText="Email" 
                SortExpression="Email_cty" />
            <asp:BoundField DataField="Dt_cty" HeaderText="Điện thoại" 
                SortExpression="Dt_cty" />
            <asp:BoundField DataField="Fax_cty" HeaderText="Fax" 
                SortExpression="Fax_cty" />
            <asp:BoundField DataField="Linkweb_cty" HeaderText="Linkweb" 
                SortExpression="Linkweb_cty" />
            <asp:TemplateField HeaderText="Quan huyen">
            <ItemTemplate>
            <%# Eval("quanhuyen.ten_qh") %>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Cập Nhật">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%#"~/Admin/Congty/Capnhat_congty.aspx?id=" + Eval("Id_cty") %>' Text="Cập Nhật"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="Xóa" Text="Xóa" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" 
        TableName="congties" >
    </asp:LinqDataSource>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>

